<script>
import vueDanmaku from 'vue-danmaku'

export default {
  components: {
    vueDanmaku
  },
  data () {
    return {
      danmus: ['danmu1', 'danmu2', 'danmu3', '...']
    }
  }
}
</script>
<template>
  <div class="content">
    <div class="message">
      <input type="text" placeholder="来都来了留下一句话吧!" />
      <button>发送</button>
    </div>
    <vue-danmaku
      :danmus="danmus"
      style="height: 100%; width: 100%"
      :font-size= 30
      :isSuspend= true
      extraStyle="color:black"
      loop
    ></vue-danmaku>
  </div>
</template>
<style lang="less" scoped>
.content {
  position: fixed;
  top: 80px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  background: linear-gradient(
    to bottom,
    rgb(255, 255, 255),
    rgb(195, 193, 193)
  );
  .message {
    border-radius: 10px;
    width: 600px;
    height: 80px;
    padding: 0px 10px;
    box-sizing: border-box;
    line-height: 80px;
    position: fixed;
    top: 600px;
    left: 34%;
    z-index: 1000000;
    input {
      width: 70%;
      height: 50px;
      margin-right: 5%;
      border-radius: 20px;
      padding-left: 25px;
      box-sizing: border-box;
      font-size: 15px;
    }
    button {
      width: 20%;
      font-size: 20px;
      font-weight: 900;
      color: black;
      background-color: white;
      border-radius: 20px;
      height: 40px;
    }
  }
}
</style>
